.class Lcom/waiqin365/lightapp/kehu/e;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/view/gk;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 8

    const-wide/16 v6, 0x0

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-class v2, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "returnTo"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "customer_latitude"

    invoke-virtual {v1, v2, v6, v7}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v4, "customer_longitude"

    invoke-virtual {v1, v4, v6, v7}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v4

    cmpl-double v1, v2, v6

    if-eqz v1, :cond_0

    cmpl-double v1, v4, v6

    if-eqz v1, :cond_0

    const-string/jumbo v1, "location"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "labeltype"

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/e;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
